package com.josework.springhelloworld.lang;

import org.springframework.util.Assert;

import java.util.EnumSet;

public enum Family {

    FATHER,
    MOTHER,
    SON,
    DAUGHTER;

    public static void main(String[] args) {

        Family f = Family.FATHER;

//        for (Family family : Family.values()) {
//            System.out.println(family+",ordinal"+family.ordinal());
//
//        }

        Integer i = null;
        System.out.println(i instanceof Integer);
        Assert.notNull(i,"i can not be null");
        int i2 = i.intValue();
        System.out.println(i2);



    }
}
